﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for Payment
/// </summary>
/// 
namespace CE.Payment
{
    public class Payment
    {
        private Int64 _cxpaymentid;
        private Int64 _refid;
        private Int64 _providercompanyid;
        private string _insurancetype;
        private string _nameofthecard;
        private string _issuingbankname;
        private string _creditcardno;
        private string _cardexpirymonth;
        private string _cardexpiryyear;
        private string _cardtype;
        private bool _status;
        private int _installmenttype;
        private int _installmentmonth;
        private Int64 _refceuserid;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public Payment()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 CXPaymentId
        {
            get { return _cxpaymentid; }
            set { _cxpaymentid = value; }
        }

        public Int64 RefId
        {
            get { return _refid; }
            set { _refid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyid; }
            set { _providercompanyid = value; }
        }

        public string InsuranceType
        {
            get { return _insurancetype; }
            set { _insurancetype = value; }
        }

        public string NameoftheCard
        {
            get { return _nameofthecard; }
            set { _nameofthecard = value; }
        }

        public string IssuingBankName
        {
            get { return _issuingbankname; }
            set { _issuingbankname = value; }
        }

        public string CreditCardNo
        {
            get { return _creditcardno; }
            set { _creditcardno = value; }
        }

        public string CardExpiryMonth
        {
            get { return _cardexpirymonth; }
            set { _cardexpirymonth = value; }
        }

        public string CardExpiryYear
        {
            get { return _cardexpiryyear; }
            set { _cardexpiryyear = value; }
        }

        public string CardType
        {
            get { return _cardtype; }
            set { _cardtype = value; }
        }

        public int InstallmentType
        {
            get { return _installmenttype; }
            set { _installmenttype = value; }
        }

        public int InstallmentMonth
        {
            get { return _installmentmonth; }
            set { _installmentmonth = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFields()
        {
            _cxpaymentid = 0;
            _refid = 0;
            _providercompanyid = 0;
            _insurancetype = "";
            _nameofthecard = "";
            _issuingbankname = "";
            _creditcardno = "";
            _cardexpirymonth = "";
            _cardexpiryyear = "";
            _cardtype = "";
            _status = false;
            _installmenttype = 0;
            _installmentmonth = 0;
            _refceuserid = 0;
            _createddate = new DateTime();
            _modifieddate = new DateTime();
            _createddate = CE.Global.General.GetUTCDateTime();
            _modifieddate = CE.Global.General.GetUTCDateTime();
        }

    }
}